package yws01.Business;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import yws01.DAO.FeiwangDAO;
import yws01.Model.Feiwang;

@Service
public class SaleServiceFeiwang {

    FeiwangDAO feiwangDAO;
    @Autowired

    public void setFeiwangDAO(FeiwangDAO feiwangDAO) { this.feiwangDAO = feiwangDAO; }

    @Transactional
    public void Feiwanginsert(Feiwang feiwang){feiwangDAO.insertFeiwang(feiwang);}
    public void Feiwangmodify(Feiwang feiwang){feiwangDAO.modifyFeiwang(feiwang);}
    public void Feiwangmodify1(Feiwang feiwang){feiwangDAO.modifyFeiwang1(feiwang);}
    public Feiwang Feiwangquery(Feiwang feiwang){System.out.println(feiwangDAO.queryFeiwang(feiwang));return feiwangDAO.queryFeiwang(feiwang);}
}
